#ifndef _DISK_H_
#define _DISK_H_

#include "common/common.h"

namespace iecas_ns
{
    #define INIT_DISK_SH_FILE_NAME "shell/init-usb-disk.sh"

    class CDisk
    {
		public:
			static shared_ptr<CDisk> getInstance();
            CDisk();
			bool init(string srcDev);
            void start(void);
            void loop(void);
            bool deinit(string srcDev);
		private:
			static shared_ptr<CDisk> sm_intancePtr;
            string m_srcDev;
            shared_ptr<CCommon> m_commonPtr;
            string pwd_shell;
    };
}

#endif